1
general::
Phrase(s): That’ll teach someone!
Inf. What happened to someone is a suitable punishment! (The someone is usually a pronoun.) • Bill: Tom, who has cheated on his taxes for years, finally got caught. Sue: That’ll teach him. • Bill: Gee, I got a ticket for speeding. Fred: That’ll teach you!
McGrawhill's American Idioms And Phrasal Verbs